<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Grupo12daturma2MIEIC4: C:/Users/Paulo/Documents/FEUP/EclipseWorkSpace/calgrafos/src/mapas.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Localizar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Grupo12daturma2MIEIC4&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Ficheiros</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Localizar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;ficheiros</span></a></li>
      <li><a href="globals.html"><span>Ficheiros&#160;membro</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('mapas_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/Paulo/Documents/FEUP/EclipseWorkSpace/calgrafos/src/mapas.h</div>  </div>
</div>
<div class="contents">
<a href="mapas_8h.html">Ir para a documentação deste ficheiro.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//============================================================================</span>
<a name="l00002"></a>00002 <span class="comment">// Nome        : mapas.h</span>
<a name="l00003"></a>00003 <span class="comment">// Autores     : T1G7</span>
<a name="l00004"></a>00004 <span class="comment">//                                      Felipe Galvão do Espírito Santo</span>
<a name="l00005"></a>00005 <span class="comment">//                                      Ivanilda Maísa Costa Brazão de Almeida</span>
<a name="l00006"></a>00006 <span class="comment">//                                      Paulo Jorge de Faria dos Reis</span>
<a name="l00007"></a>00007 <span class="comment">// Versão      : 1.0</span>
<a name="l00008"></a>00008 <span class="comment">// Data        : Maio de 2011</span>
<a name="l00009"></a>00009 <span class="comment">// Copyright   : Creative Commons 2.0</span>
<a name="l00010"></a>00010 <span class="comment">// Descrição   : CAL 2011 - TG1</span>
<a name="l00011"></a>00011 <span class="comment">//               Tema 12 - Transporte de pacientes de uma clínica de saúde.</span>
<a name="l00012"></a>00012 <span class="comment">//============================================================================</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;fstream&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="_auxiliar_8h.html">Auxiliar.h</a>&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="_graph_8h.html">Graph.h</a>&quot;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="keyword">using namespace </span>std;
<a name="l00023"></a>00023 
<a name="l00025"></a><a class="code" href="classno.html">00025</a> <span class="keyword">class </span><a class="code" href="classno.html" title="Classe que define um ponto geográfico.">no</a>
<a name="l00026"></a>00026 {
<a name="l00027"></a>00027 <span class="keyword">public</span>:
<a name="l00028"></a>00028         <a class="code" href="classno.html" title="Classe que define um ponto geográfico.">no</a>(<span class="keywordtype">string</span> linha);                       
<a name="l00029"></a>00029         ~<a class="code" href="classno.html" title="Classe que define um ponto geográfico.">no</a>();                                          
<a name="l00030"></a>00030         <span class="keywordtype">bool</span> operator== (<a class="code" href="classno.html" title="Classe que define um ponto geográfico.">no</a> no1);       
<a name="l00031"></a>00031         <span class="keywordtype">int</span> getID();                            
<a name="l00032"></a>00032         <span class="keywordtype">float</span> latitude();                       
<a name="l00033"></a>00033         <span class="keywordtype">float</span> longitude();
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">private</span>:
<a name="l00037"></a><a class="code" href="classno.html#ac517e6c74e70237ef721d67836e2a9f3">00037</a>         <span class="keywordtype">int</span> <a class="code" href="classno.html#ac517e6c74e70237ef721d67836e2a9f3" title="Dados a guardar no n�">identificador</a>;
<a name="l00038"></a><a class="code" href="classno.html#ac63dfdd6840b84e561d5eff5ba0941f7">00038</a>         <span class="keywordtype">float</span> <a class="code" href="classno.html#ac63dfdd6840b84e561d5eff5ba0941f7">posX</a>;
<a name="l00039"></a><a class="code" href="classno.html#aaf3d66c0aa5c8668dd7159005e59cf1d">00039</a>         <span class="keywordtype">float</span> <a class="code" href="classno.html#aaf3d66c0aa5c8668dd7159005e59cf1d">posY</a>;
<a name="l00040"></a><a class="code" href="classno.html#a8f48fc489a7d01ee82875808e6212b9c">00040</a>         <span class="keywordtype">float</span> <a class="code" href="classno.html#a8f48fc489a7d01ee82875808e6212b9c">projX</a>;
<a name="l00041"></a><a class="code" href="classno.html#a779b0592609d02c60d00bc8dc17970a9">00041</a>         <span class="keywordtype">float</span> <a class="code" href="classno.html#a779b0592609d02c60d00bc8dc17970a9">projY</a>;
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00046"></a><a class="code" href="classmorada.html">00046</a> <span class="keyword">class </span><a class="code" href="classmorada.html" title="Ruas de um mapa.">morada</a>
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048 <span class="keyword">public</span>:
<a name="l00049"></a>00049         <a class="code" href="classmorada.html" title="Ruas de um mapa.">morada</a>(<span class="keywordtype">string</span> linha);                                   
<a name="l00050"></a>00050         ~<a class="code" href="classmorada.html" title="Ruas de um mapa.">morada</a>();
<a name="l00051"></a>00051 <span class="comment">//      string oNome(int identificador);        //! Devolve o nome da rua a partir do identificador.</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">private</span>:
<a name="l00054"></a><a class="code" href="classmorada.html#a3a0baa4d244f2f1d057129902e57d81e">00054</a>         <span class="keywordtype">int</span> <a class="code" href="classmorada.html#a3a0baa4d244f2f1d057129902e57d81e">identificador</a>;
<a name="l00055"></a><a class="code" href="classmorada.html#afe6791c14fddec6d49e0ac5e2af98684">00055</a>         <span class="keywordtype">string</span> <a class="code" href="classmorada.html#afe6791c14fddec6d49e0ac5e2af98684">nome</a>;
<a name="l00056"></a><a class="code" href="classmorada.html#a0667313fd6a309ecbdb2d9460f6dce53">00056</a>         <span class="keywordtype">bool</span> <a class="code" href="classmorada.html#a0667313fd6a309ecbdb2d9460f6dce53">umSentido</a>;
<a name="l00057"></a>00057 };
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 
<a name="l00061"></a><a class="code" href="classunidade.html">00061</a> <span class="keyword">class </span><a class="code" href="classunidade.html" title="Ponto de localiza��o geogr�fico.">unidade</a>
<a name="l00062"></a>00062 {
<a name="l00063"></a>00063 <span class="keyword">public</span>:
<a name="l00064"></a>00064         <a class="code" href="classunidade.html" title="Ponto de localiza��o geogr�fico.">unidade</a>(<span class="keywordtype">string</span> ponto);          
<a name="l00065"></a>00065         ~<a class="code" href="classunidade.html" title="Ponto de localiza��o geogr�fico.">unidade</a>();
<a name="l00066"></a>00066         <span class="keywordtype">int</span> noInicio();
<a name="l00067"></a>00067         <span class="keywordtype">int</span> noFinal();
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 <span class="keyword">private</span>:
<a name="l00070"></a><a class="code" href="classunidade.html#a629ba40fba2aebf1e655e411b0dc9892">00070</a>         <span class="keywordtype">int</span> <a class="code" href="classunidade.html#a629ba40fba2aebf1e655e411b0dc9892">identificador</a>;
<a name="l00071"></a><a class="code" href="classunidade.html#ad28454c997973a909804f43b434753c8">00071</a>         <span class="keywordtype">int</span> <a class="code" href="classunidade.html#ad28454c997973a909804f43b434753c8">inicio</a>;
<a name="l00072"></a><a class="code" href="classunidade.html#a4f5131e77f9ccdda0b2c06eb0137d3e0">00072</a>         <span class="keywordtype">int</span> <a class="code" href="classunidade.html#a4f5131e77f9ccdda0b2c06eb0137d3e0">fim</a>;
<a name="l00073"></a>00073 };
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 
<a name="l00077"></a><a class="code" href="classmapa.html">00077</a> <span class="keyword">class </span><a class="code" href="classmapa.html" title="Mapa processado a partir dos ficheiros de texto.">mapa</a>
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079 <span class="keyword">public</span>:
<a name="l00080"></a>00080         <a class="code" href="classmapa.html" title="Mapa processado a partir dos ficheiros de texto.">mapa</a>(<span class="keywordtype">float</span> esquerda, <span class="keywordtype">float</span> direita, <span class="keywordtype">float</span> cima, <span class="keywordtype">float</span> baixo, <span class="keywordtype">int</span> X, <span class="keywordtype">int</span> Y);     
<a name="l00081"></a>00081         ~<a class="code" href="classmapa.html" title="Mapa processado a partir dos ficheiros de texto.">mapa</a>();
<a name="l00082"></a>00082         <span class="keywordtype">void</span> processaMapa(<span class="keywordtype">char</span> * fNodes, <span class="keywordtype">char</span> * fRuas, <span class="keywordtype">char</span> * fSubruas);                
<a name="l00083"></a>00083         vector&lt;no&gt;::iterator infoNo(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);    
<a name="l00084"></a>00084         vector&lt;no&gt;::iterator primeiro();                
<a name="l00085"></a>00085         <span class="keywordtype">void</span> planearRotas(vector&lt;int&gt;* rotas, vector&lt;int&gt;* avisitar, <span class="keywordtype">int</span> lugares);      
<a name="l00086"></a>00086         <a class="code" href="classno.html" title="Classe que define um ponto geográfico.">no</a>&amp; noPorID(<span class="keywordtype">int</span> ident);         
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="keyword">private</span>:
<a name="l00090"></a><a class="code" href="classmapa.html#a5c3da8633f4005f7c7edfc089668d01c">00090</a>         <span class="keywordtype">int</span> <a class="code" href="classmapa.html#a5c3da8633f4005f7c7edfc089668d01c" title="Devolve uma referência para um nó a partir do seu identificador.">horizontal</a>;                                 
<a name="l00091"></a><a class="code" href="classmapa.html#ac123c36468b41d573ff5b28fc6d842c7">00091</a>         <span class="keywordtype">int</span> <a class="code" href="classmapa.html#ac123c36468b41d573ff5b28fc6d842c7" title="X.">vertical</a>;                                   
<a name="l00092"></a><a class="code" href="classmapa.html#a4ccbcb32e32c3f3fc5ed81264adadf06">00092</a>         <span class="keywordtype">float</span> <a class="code" href="classmapa.html#a4ccbcb32e32c3f3fc5ed81264adadf06" title="Y.">longitudeMin</a>;                             
<a name="l00093"></a><a class="code" href="classmapa.html#acc5a9aa327a2beea8926ffe87a23feb2">00093</a>         <span class="keywordtype">float</span> <a class="code" href="classmapa.html#acc5a9aa327a2beea8926ffe87a23feb2" title="esquerda">longitudeMax</a>;                             
<a name="l00094"></a><a class="code" href="classmapa.html#a8604276b258cacb5c0b89bc2898f565f">00094</a>         <span class="keywordtype">float</span> <a class="code" href="classmapa.html#a8604276b258cacb5c0b89bc2898f565f" title="direita">latitudeMin</a>;                              
<a name="l00095"></a><a class="code" href="classmapa.html#acfeb9cd704d1e797721a3ac548afca69">00095</a>         <span class="keywordtype">float</span> <a class="code" href="classmapa.html#acfeb9cd704d1e797721a3ac548afca69" title="baixo">latitudeMax</a>;                              
<a name="l00096"></a><a class="code" href="classmapa.html#a0778ef30778f978a7f476b2b5c1e7076">00096</a>         vector&lt;no&gt; <a class="code" href="classmapa.html#a0778ef30778f978a7f476b2b5c1e7076" title="cima">pontos</a>;                              
<a name="l00097"></a><a class="code" href="classmapa.html#a3c9a8d8abeef93fd59e9a75f58fb3027">00097</a>         vector&lt;morada&gt; <a class="code" href="classmapa.html#a3c9a8d8abeef93fd59e9a75f58fb3027" title="Colecção dos nós geográficos de um mapa.">arruamentos</a>;             
<a name="l00098"></a><a class="code" href="classmapa.html#aa31bd8c404a671ac96e41c67c25b238f">00098</a>         vector&lt;unidade&gt; <a class="code" href="classmapa.html#aa31bd8c404a671ac96e41c67c25b238f" title="Ruas do mapa.">pontosInteresse</a>;
<a name="l00099"></a><a class="code" href="classmapa.html#a9201227ee79c8084fe5691254ec950a8">00099</a>         <a class="code" href="class_graph.html">Graph&lt;no&gt;</a> <a class="code" href="classmapa.html#a9201227ee79c8084fe5691254ec950a8" title="Sub ruas, a localização mais pequena que se pode definir.">grafoDoMapa2</a>;                 
<a name="l00100"></a><a class="code" href="classmapa.html#acab9ebb8899f41f52d11631add616f9a">00100</a>         <a class="code" href="class_graph.html">Graph&lt;int&gt;</a> <a class="code" href="classmapa.html#acab9ebb8899f41f52d11631add616f9a" title="Este é o grafo para o DijKstra.">grafoDoMapa</a>;                 
<a name="l00101"></a>00101 };
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="mapas_8h.html">mapas.h</a>      </li>
      <li class="footer">Gerado em Fri May 13 2011 02:00:24 para Grupo12daturma2MIEIC4 por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Ficheiros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Amigos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
